package com.odobenus.common;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * JSON 基类
 *
 * @author liaoqiqi
 * @version 2013-12-3
 */
public class JsonObjectBase implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -8441731449894560959L;

    /**
     * 如果成功的话，数据结果
     */
    protected Map<String, Object> message = new HashMap<String, Object>();
    protected Map<String, Object> result = new HashMap<String, Object>();

    public void addData(String key, Object value) {
    	System.out.println(key+"---"+value);
        result.put(key, value);
    }
    public JsonObjectBase() {
    	 super();
         success = FrontEndInterfaceConstant.RETURN_OK;
    }

    /**
     * 会话ID
     */

    protected String success = "true";

    public String getSuccess() {
        return success;
    }

    public void setSuccess(String success) {
        this.success = success;
    }

    public Map<String, Object> getMessage() {
        return message;
    }

    public void setMessage(Map<String, Object> message) {
        this.message = message;
    }

}